//
//  WEIBOStatus.m
//  OneWeiBo
//
//  Created on 9.
//   
//

#import "WEIBOStatus.h"
#import "MJExtension.h"
#import "WEIBOPhoto.h"

@implementation WEIBOStatus

- (NSDictionary *)objectClassInArray
{
    return @{@"pic_urls": [WEIBOPhoto class]};
}

- (void)setSource:(NSString *)source
{
    NSString *newSource = @"未知";
    if (source.length > 0) {
        int start = [source rangeOfString:@">"].location + 1;
        int length = [source rangeOfString:@"</"].location - start;
        newSource = [source substringWithRange:NSMakeRange(start, length)];
    }
    _source = [NSString stringWithFormat:@"来自%@",newSource];
}
@end
